package edu.sctu.liangyuxiang.day20150512.text2;

/**
 * Created by user06 on 2015/5/12.
 */
public class TextThree extends TextOne {
    public Student[] student;
    public TextThree(Student[] student) {
        super(student);
        this.student = student;
    }

    @Override
    public void outPut() {
        for(int i = 0; i<10; i++) {
            if (student[i].getScore() > 60  &&  student[i].getSex().equals("男")) {
                System.out.println(student[i].getName()+"\b"+student[i].getSex()+"\b"+student[i].getScore()+"\b"+student[i].getAge()+"\b"+student[i].getNumber()+"\b"+ student[i].getAddress());
            }
        }
    }

}

